<template>
  <embed
    style="width: 100%; height: 500px"
    :src="homeFormStore.currentDagLogFile"
    type="text/plain"
  />
</template>
<script setup lang="ts">
// import { TaskService } from '@/services/bussiness/Task/task.service'
import { useHomeFormStore } from '@/stores/home/form.store'
import { defineProps, watch } from 'vue'

const props = defineProps({
  filePath: String
})
// watch(
//   () => props.filePath,
//   (now) => {
//     console.log(91, now)
//     if (now) {
//       now = now.replace('https://num.haoma.cn/', 'https://numtest.haoma.cn/')
//       //   TaskService.getDagLogFileByFilePath(now)
//     }
//   },
//   {
//     immediate: true
//   }
// )
const homeFormStore = useHomeFormStore()
</script>
<style>
.menu-wrapper {
  position: fixed;
  z-index: 1;
}
</style>
